package com.vcredit.creditcat.persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.vcredit.creditcat.model.CustProductApply;

public interface CustProductApplyExtMapper {
  List<CustProductApply> findByCustId(Long custId);
  /**
   * 查询有审核结果的产品
   * @param custId
   * @return
   */
  List<CustProductApply> findByCustNot(Long custId);
  
  CustProductApply findByFlowNo(String flowNo);

  CustProductApply findNewApplyProduct(@Param("productId") Long productId,
      @Param("custId") Long custId);

  List<CustProductApply> findRequireQuryLimitList();

  Integer getSuccessApplyCount(Long custId);
}
